/summon villager ~ ~2 ~ {VillagerData:{profession:librarian,level:5,type:plains},Offers:{Recipes:[
{buy:{id:iron_ingot,Count:7},buyB:{id:diamond,Count:2},sell:{id:iron_helmet,Count:1,tag:{display:{Name:"{\"text\":\"Hardened Steel Helmet\",\"color\":\"gray\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.01,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"},
{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.1,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"}],Enchantments:[{id:"minecraft:protection",lvl:3}]
},maxUses:9999999}},
{buy:{id:iron_ingot,Count:10},buyB:{id:diamond,Count:3},sell:{id:iron_chestplate,Count:1,tag:{display:{Name:"{\"text\":\"Hardened Steel Chestplate\",\"color\":\"gray\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.01,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"},
{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.15,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"}],Enchantments:[{id:"minecraft:protection",lvl:3}]
},maxUses:9999999}},
{buy:{id:iron_ingot,Count:9},buyB:{id:diamond,Count:2},sell:{id:iron_leggings,Count:1,tag:{display:{Name:"{\"text\":\"Hardened Steel Leggings\",\"color\":\"gray\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.01,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"},{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.15,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"}],Enchantments:[{id:"minecraft:protection",lvl:3}]
},maxUses:9999999}},
{buy:{id:iron_ingot,Count:6},buyB:{id:diamond,Count:1},sell:{id:iron_boots,Count:1,tag:{display:{Name:"{\"text\":\"Hardened Steel Boots\",\"color\":\"gray\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.01,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"},{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.1,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"}],Enchantments:[{id:"minecraft:protection",lvl:3}]
},maxUses:9999999}}]}}